package com.leizi.igym.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.leizi.igym.dto.LostDTO;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 
 * @TableName t_lost
 */
@TableName(value ="t_lost")
@Data
public class Lost implements Serializable {
    /**
     * 失物招领id
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 发布者id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 失物照片
     */
    @TableField(value = "picture")
    private String picture;


    /**
     * 失物招领标题
     */
    @TableField(value = "title")
    private String title;



    /**
     * 上传者昵称
     */
    @TableField(value = "nickname")
    private String nickname;

    /**
     * 失物招领描述
     */
    @TableField(value = "descrip")
    private String descrip;

    /**
     * 失物状态，0-未认领找回，1-已认领找回
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    /**
     * 逻辑删除
     */
    @TableField(value = "deleted")
    private Integer deleted;

    /**
     * 发布者头像
     */
    @TableField(value = "avatar")
    private String avatar;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}